<?php
$menuList = $this->entityManager->find('configList', ['contentModel' => 'menu']);
$options = [];
foreach ($menuList as $menu) {
    $options[$menu->getId()] = $menu->name;
}
return array(
    'menu' => array(
        'label' => '菜单',
        'error' => '',
        'userOptions' => [],
        'description' => '调取哪个菜单的数据',
        'widget' => 'Select',
        'options' => $options,
        'validate' => [],
        'filter' => array('striptags'),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
);
